package inventory.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxt
 * @since 2019-11-06
 */
@ApiModel(value = "销库请求相关信息")
@ToString
public class SaleRequest extends Model<SaleRequest> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(hidden = true)
    @TableId(value = "sale_id", type = IdType.UUID)
    private String saleId;
    @ApiModelProperty(value = "用户id")
    private String userId;
    @ApiModelProperty(value = "类型id（typicalId）")
    private String typicalId;
    @ApiModelProperty(value = "物料id（物料出库才填写,由于物料是根据id销库而其他两种是根据串号销库）")
    private String stuff_id;
    @ApiModelProperty(value = "对应仓库id")
    private String repositoryId;
    @ApiModelProperty(value = "如果是物料，填写这个参数，表示物料使用量")
    private Long num;
    @ApiModelProperty(value = "如果是终端和设备，填写这个参数，代表串号")
    private String serialNum;
    @ApiModelProperty(value = "请求处理状态,发送请求不用传，默认0：未处理，1：已处理",hidden = true)
    private Integer status = 0;
    @ApiParam(value = "接收此申请的上级id")
    private String roleId;
    @ApiParam(value = "销库时间")
    private Date requestTime;
    @ApiParam(value = "销库种类")
    private Integer saleType;

    public Integer getSaleType() {
        return saleType;
    }

    public void setSaleType(Integer saleType) {
        this.saleType = saleType;
    }

    public Date getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(Date requestTime) {
        this.requestTime = requestTime;
    }

    public String getSaleId() {
        return saleId;
    }

    public void setSaleId(String saleId) {
        this.saleId = saleId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTypicalId() {
        return typicalId;
    }

    public void setTypicalId(String typicalId) {
        this.typicalId = typicalId;
    }

    public Long getNum() {
        return num;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public String getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStuff_id() {
        return stuff_id;
    }

    public void setStuff_id(String stuff_id) {
        this.stuff_id = stuff_id;
    }

    public String getRepositoryId() {
        return repositoryId;
    }

    public void setRepositoryId(String repositoryId) {
        this.repositoryId = repositoryId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    @Override
    protected Serializable pkVal() {
        return this.saleId;
    }


}
